-- GENERATED SPELL FOR [Nethervine Reaper] --


function spell0_19512(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19512', 589, 1)
end

function spell1_19512(pUnit, Event) --@Sunseeker Blessing,Self--
pUnit:FullCastSpellOnTarget(34173,pUnit)
pUnit:RegisterEvent('Sorts_19512', 30311, 1)
end

function Sorts_19512(pUnit, Event)
local choix_sorts_19512 = math.random(0, 1)
if choix_sorts_19512 == 0 then
pUnit:RegisterEvent('spell0_19512', 1, 1)
end
if choix_sorts_19512 == 1 then
pUnit:RegisterEvent('spell1_19512', 1, 1)
end
end

function mob19512_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19512', math.random(1500, 3000), 1)
end

function mob19512_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19512_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19512_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19512, 1, 'mob19512_Action')
RegisterUnitEvent(19512, 2, 'mob19512_Leave')
RegisterUnitEvent(19512, 3, 'mob19512_Kill')
RegisterUnitEvent(19512, 4, 'mob19512_Die')
